home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr07
/
oleo130s.zip
/
OLEO130S.TAR
/
oleo-1.3
/
configure.in
< prev
next >
Wrap
Text File
|
1993-03-16
|
1KB
|
56 lines
dnl Process this file with autoconf to produce a configure script.
dnl
AC_INIT(io-term.c)
AC_SUBST(LIBS)
dnl Checks for programs:
AC_PROG_CC
AC_PROG_CPP
AC_PROG_YACC
AC_PROG_INSTALL
dnl Checks for UNIX variants that set `DEFS':
AC_ISC_POSIX
dnl Checks for header files:
AC_STDC_HEADERS
AC_UNISTD_H
AC_DIR_HEADER
AC_HAVE_HEADERS(sys/time.h string.h memory.h sys/select.h)
dnl X11 may need some extra libraries on SVR4
test -f /lib/libsocket.a -o -f /lib/libsocket.so && LIBS="$LIBS -lsocket"
test -f /lib/libnsl.a -o -f /lib/libnsl.so && LIBS="$LIBS -lnsl"
AC_HEADER_CHECK(X11/X.h, AC_DEFINE(HAVE_X11_X_H); LIBS="$LIBS -lX11")
dnl checks for functions
AC_RETSIGTYPE
AC_ALLOCA
AC_REPLACE_FUNCS(random)
dnl Replace vfprintf and vsprintf.
dnl If either needs to be replaced, replace _doprnt.
need_doprnt=
AC_COMPILE_CHECK([vfprintf], , [vfprintf();], ,
[LIBOBJS="$LIBOBJS vfprintf.o"; need_doprnt=1])
AC_COMPILE_CHECK([vsprintf], , [vsprintf();], ,
[LIBOBJS="$LIBOBJS vsprintf.o"; need_doprnt=1])
if test $need_doprnt; then
AC_REPLACE_FUNCS(_doprnt)
fi
AC_HAVE_LIBRARY(termcap, \
LIBS="$LIBS -lcurses -ltermcap", \
AC_HAVE_LIBRARY(termlib, \
LIBS="$LIBS -lcurses -ltermlib", \
LIBS="$LIBS -lcurses"))
LIBS_save="$LIBS"
LIBS="$LIBS -lm"
compile='${CC-cc} $DEFS conftest.c -o conftest $LIBS >/dev/null 2>&1'
AC_HAVE_FUNCS(rint rename \
getcap stricmp strincmp cbreak \
strdup strstr)
LIBS="$LIBS_save"
AC_OUTPUT(Makefile)